import Item from 'antd-mobile/es/components/dropdown/item';
import React, { useEffect } from 'react';
import './index.less';
export default function Limited(props: {
  _id: any;
  good: any;
  startTime: Date;
  overTime: Date;
  done: Boolean;
}) {
  useEffect(() => {
    console.log(props, 'limited');
  }, []);
  return (
    <div className="limited">
      {props.good.map((item) => {
        return (
          <div className="goods" key={item._id}>
            <img src={item.imgs} alt="" />
            <p>{item.name}</p>
            <div className="price">
              <span>￥{item.price}</span>
              <span>￥{item.price - 30}</span>
            </div>
          </div>
        );
      })}
    </div>
  );
}
